//
//  ACAuthorization.m
//  ACFramework
//
//  Created by caoyq on 2019/1/10.
//

#import "ACAuthorization.h"

@implementation ACAuthorization

+ (BOOL)isAllowedNotification
{
    UIUserNotificationSettings *setting = [[UIApplication sharedApplication] currentUserNotificationSettings];
    if (UIUserNotificationTypeNone != setting.types) { //已开启通知
        return YES;
    }
    return NO;
}

@end
